const CssMinimizerPlugin = require('css-minimizer-webpack-plugin')
const TerserPlugin = require('terser-webpack-plugin')

module.exports = {
	output: {
		filename: 'script/[name].[contenthash].js',
		publicPath: 'http://localhost:8080/',
	},

	optimization: {
		minimizer: [new CssMinimizerPlugin(), new TerserPlugin()],
	},

	mode: 'production',

	performance: {
		hints: false,
	},
}
